﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SceneManager
{
    public class VoxelTerrain4 : DrawableObject
    {
        public HalfByte3 Data { get; protected set; }
        public Texture2D Texture { get; set; }

        public VoxelTerrain4(Game game, Vector3 position) : base(game)
        {
            Position = position;

            Data = new HalfByte3(128, 32, 128);
            Data.Fill(1);
        }

        public override void Draw(Camera camera, GameTime gameTime)
        {
            for (int y = 0; y < 32; y++)
                for (int z = 0; z < 128; z++)
                    for (int x = 0; x < 128; x++)
                    {
                        // Afficher un cube :p
                    }

            // TODO: Afficher seulement les voxels visibles
        }
    }
}
